package com.net.xpay.core.dao.collect;

import com.net.xpay.core.domain.collect.CollectionSafePayOrder;
import com.net.xpay.core.model.CollectionSafePayOrderSearchModel;
import com.net.common.dao.Page;
import com.net.common.dao.VersionedMapper;
import com.net.common.annotation.DataShard;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataShard("xpay")
@Repository
public interface CollectionSafePayOrderMapper extends VersionedMapper<Long, CollectionSafePayOrder> {
    List<CollectionSafePayOrder> search(@Param("searchModel") CollectionSafePayOrderSearchModel searchModel, @Param("page") Page page);

    long searchCount(@Param("searchModel") CollectionSafePayOrderSearchModel searchModel);

    List<CollectionSafePayOrder> findByIds(@Param("ids") List<Long> ids);

    int updateStatusByIds(@Param("status") String status, @Param("ids") List<Long> ids);

    int batchUpdate(@Param("records") List<CollectionSafePayOrder> records);
}
